package com.zky.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zky.common.utils.PageUtils;
import com.zky.gulimall.product.entity.AttrGroupEntity;
import com.zky.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.zky.gulimall.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zky
 * @email 574096634@qq.com
 * @date 2022-08-17 21:28:48
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long cateLogId);

    //根据分类id查出所有的分组以及这些组里的属性
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
    //根据spuId查出所有的分组以及这些组里的属性
    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

